package com.pfzy.utildemo.activity.record.soundrecord.upload.callback;

import com.pfzy.utildemo.activity.record.soundrecord.upload.Dto.UploadAudioInfo;

import java.util.List;

public interface UploadCallback {
//    public static final int ERROR_CODE_CLIENT_ERROR = 8000;
//    public static final int ERROR_CODE_NETWORK_FAIL = 5000;
    public static final int ERROR_CODE_NOT_COMPLETE = 4000; // 错误代码未完成
//    public static final int ERROR_CODE_RESUME_FILE_READ_FAILED = 10000;
//    public static final int ERROR_CODE_SAME_OBJECT_UPLOADING = 7000;
//    public static final int ERROR_CODE_SERVER_BAD_DATA = 6000;
//    public static final int ERROR_CODE_SERVER_ERROR = 9000;

    void onCompleteSuccess(UploadAudioInfo uploadAudioInfo, List<String> list);

    void onFailed(UploadAudioInfo uploadAudioInfo, int errorCode, String message);

    void onPartSuccess(UploadAudioInfo uploadAudioInfo, String str, int i, long j);
}
